// SystemWindowUserControl.cs
//
// This file implements a UserControl-derived class 
// that represents the data window plug-in in the
// TLA system window.
/////////////////////////////////////////////////////////////

using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

namespace CSSampleDataWindow
{

	public class SystemWindowUserControl : System.Windows.Forms.UserControl
	{
		// Like the System Window Control for a built-in
		// data window. The control for the plug-in has
		// a button that activates the window and a
		// text box to display and change the user name.
		public System.Windows.Forms.Button activateButton;
		public System.Windows.Forms.TextBox userNameBox;
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public SystemWindowUserControl()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

			// TODO: Add any initialization after the InitForm call

		}

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Component Designer generated code
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.activateButton = new System.Windows.Forms.Button();
            this.userNameBox = new System.Windows.Forms.TextBox();
            this.SuspendLayout();
            // 
            // activateButton
            // 
            this.activateButton.Location = new System.Drawing.Point(16, 0);
            this.activateButton.Name = "activateButton";
            this.activateButton.Size = new System.Drawing.Size(88, 48);
            this.activateButton.TabIndex = 0;
            this.activateButton.Text = "Show Window";
            // 
            // userNameBox
            // 
            this.userNameBox.Location = new System.Drawing.Point(8, 56);
            this.userNameBox.Name = "userNameBox";
            this.userNameBox.Size = new System.Drawing.Size(104, 22);
            this.userNameBox.TabIndex = 1;
            this.userNameBox.Text = "textBox1";
            // 
            // SystemWindowUserControl
            // 
            this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                          this.userNameBox,
                                                                          this.activateButton});
            this.Name = "SystemWindowUserControl";
            this.Size = new System.Drawing.Size(120, 96);
            this.ResumeLayout(false);

        }
		#endregion
	}
}
